package com.hyz.pojo;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * @author HGD
 * @date 2022/10/2 17:03
 */

public enum AssetStatusEnum {
    /**
     * lock代表上锁
     * unlock代表未上锁
     * borrow代表资产借用
     * allocated代表资产调拨
     * retired代表资产报废
     * unassigned代表未分库
     */
    UNASSIGNED(0, "未分库"),
    LOCK(1, "上锁"),
    UNLOCK(2, "未上锁"),
    BORROW(3, "资产借用"),
    ALLOCATED(4, "资产调拨"),
    RETIRED(5, "资产报废");

    @EnumValue
    private final Integer key;
    private final String value;

    public Integer getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }

    AssetStatusEnum(Integer key, String value) {
        this.key = key;
        this.value = value;
    }
}
